package com.homework3;

public class Architect extends Designer{
    private int stock;//股份

    public Architect() {
    }

    public Architect(int stock) {
        this.stock = stock;
    }

    public Architect(double bonus, int stock) {
        super(bonus);
        this.stock = stock;
    }

    public Architect(int id, String name, int age, double salary, String language, double bonus, int stock) {
        super(id, name, age, salary, language, bonus);
        this.stock = stock;
    }

    public Architect(String language, double bonus, int stock) {
        super(language, bonus);
        this.stock = stock;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    @Override
    public void getInfo() {
        System.out.println("架构师信息：" +
                "编号：" + getId() +
                "姓名：" + getName() +
                "年龄：" + getAge() +
                "工资：" + getSalary() +
                "语言：" + getLanguage() +
                "奖金：" + getBonus() +
                "股份：" + stock);
    }
}
